package com.asset.dispoal.file.casedispose.service.command;

import com.asset.dispoal.file.casedispose.dto.FileCaseBatchEditRequest;
import com.asset.dispoal.file.casedispose.strategy.FileBatchUpdateStrategyManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import tech.mhuang.pacebox.core.ddd.BaseCommand;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @description:
 * @author: yf
 * @date: 2022-10-14 14:53:13
 */
@Repository
public class FileCaseBatchUpadteCommand implements BaseCommand<FileCaseBatchEditRequest, Result> {
    @Autowired
    private FileBatchUpdateStrategyManager fileBatchUpdateStrategyManager;

    @Override
    public Result execute(FileCaseBatchEditRequest request) {
        return fileBatchUpdateStrategyManager.getResult(request);
    }
}
